package cc.vv.btpartyjob.partymanager.adapter

import android.widget.TextView
import cc.vv.baselibrary.adapter.SimpleCommonAdapter
import cc.vv.baselibrary.adapter.holder.ExtendViewHolder
import cc.vv.btpartyjob.jnimodule.server.OperationServer
import cc.vv.btpartyjob.partymanager.R
import cc.vv.btpartyjob.partymanager.moudel.bean.SheHuiZuZhiDataObj

/**
 * 组织动态 adapter
 * Created by Chen.qi on 2018/10/24.
 */
class ZuZhiDynamicAdapter(layoutResId: Int) : SimpleCommonAdapter<SheHuiZuZhiDataObj>(layoutResId) {
    override fun convert(helper: ExtendViewHolder, item: SheHuiZuZhiDataObj, position: Int) {
        val nameView = helper.getView<TextView>(R.id.tv_iso_socialOrganName)
        val timeView = helper.getView<TextView>(R.id.tv_iso_socialTime)
        nameView?.text = item.title
        timeView?.text = OperationServer.formatStr(item.createTime)
    }
}